﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="CategoryProductHome.ascx.vb"
    Inherits="FrontEnd_Control_Home_CategoryProductHome" %>

<script type="text/javascript">
    $(function () {

        $(".btn_detail").click(function () {
            location.href = $(this).parent().parent().find("a").attr("href");
            return false;
        });
        $(".thumb_imgshopproduct").click(function () {
            location.href = $(this).parent().find("a").attr("href");
            return false;
        });

    });
</script>

    <asp:Repeater ID="rptCate" runat="server">
        <ItemTemplate>
        <div class="box_porletright">
            <div class="box_porletright">
                <div class="bgtitle_porletright">
                    <div class="texttitle_porletright"><asp:HyperLink ID="hplCate" runat="server">
                            <asp:Label ID="lblCate" runat="server" Text=""></asp:Label></asp:HyperLink></div>
                    <asp:HiddenField ID="hidCateID" Value="0" runat="server" />
                </div>
            </div>
            <div class="linksporlet_main" style="display:none"> 
                <ul>
                    <asp:Repeater ID="rptSubCate" OnItemDataBound="rptSubCate_ItemDataBound" runat="server">
                        <ItemTemplate>
                            <li>
                                <asp:HyperLink ID="hplSubCate"  runat="server"></asp:HyperLink></li>
                                 <li><img src='<%=ResolveUrl("~/FrontEnd/images/line_floor_menu.png")%>' alt="line menu"  ></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
            <!-- list product -->
             <div class="bgmid_porletright">
            
                <asp:Repeater ID="rptProduct" OnItemDataBound="rptProduct_ItemDataBound" runat="server">
                    <ItemTemplate>
                    <div class="bgcell_product">
                                <div class="title_product">
                                  <h3><asp:HyperLink ID="hplTitle" runat="server" CssClass="title_product"></asp:HyperLink></h3>  
                                </div>
                                                        
                            
                                <div class="thumb_imgshopproduct">
                                   <h4><asp:Image ID="img" border="0"  align="absmiddle" runat="server" /></h4>
                                </div>

                                <p class="code_product">
                                     <asp:Literal ID="ltrCodeProduct" runat="server"></asp:Literal> 
                                </p>
                                <p class="price_product">
                                    Giá : <span><asp:Literal ID="ltrPrice" runat="server"></asp:Literal></span></p>
                                <asp:Button ID="btnAddCart" runat="server" CssClass="btn_buy" Text="Add cart" OnClick="btnAddCart_Click"  /> 
                                <asp:Button id="btnDetail" runat="server" Text="Details" CssClass="btn_detail" />
                                
                            
                          </div>
                    </ItemTemplate>
                </asp:Repeater>
          
            </div>
        <div class="bgbottom_porletright"></div>
            <!-- end list product -->
        </div>
        </ItemTemplate>
    </asp:Repeater>

<div style="display: none">
    <asp:HiddenField ID="hidQuery" runat="server" />
    <asp:HiddenField ID="hidID" runat="server" />
</div>
